package com.score.entity;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评分卡规则项
 * </p>
 *
 * @author yangjingjing
 * @since 2020-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ScoreItem implements Serializable {

private static final long serialVersionUID=1L;

    private Integer id;

    /**
     * 规则父ID
     */
    private Integer pid;

    /**
     * 模型ID
     */
    private Integer modelId;

    /**
     * 规则名称
     */
    private String name;

    /**
     * 规则变量
     */
    private String varName;

    /**
     * 规则表达式
     */
    private String rule;

    /**
     * 规则分值
     */
    private String score;

    /**
     * 规则权重
     */
    private String weight;

    /**
     * 规则code
     */
    private String code;

    /**
     * 规则是否删除
     */
    private String deleted;


    public static final String ID = "id";

    public static final String PID = "pid";

    public static final String MODEL_ID = "model_id";

    public static final String NAME = "name";

    public static final String VAR_NAME = "var_name";

    public static final String RULE = "rule";

    public static final String SCORE = "score";

    public static final String WEIGHT = "weight";

    public static final String CODE = "code";

    public static final String DELETED = "deleted";

}
